package il.technion.cs236369.database;

/**
 * Define the SQL functions.
 * @author itamar talmi 0396055979 itamar.talmi@gmail.com , ofir haviv 300228921 havivi1986@gmail.com
 *
 */
public interface ICache {
	
	/**
	 * Stores new data in the cache. If existing, overwrite it.
	 * @param httpHeader - The data to store.
	 */
	public void storeData(HttpMessageCacheDetails httpMessage);
	
	/**
	 * The functions returns an element from the cache
	 * @param url - The url of the wanted page
	 * @return - The HttpMessage. Null if not exist in the cache.
	 */
	public HttpMessageCacheDetails GetData(String url);
	
	/**
	 * Removes the page from the cache. If not exist, do nothing.
	 * @param url - The url of the page.
	 */
	public void deleteData(String url);
	
}
